package qc.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * SQL语句中Where条件的筛选类型
 *
 * @author QuCheng Tech
 * @since 2024/3/7
 */
@Getter
@AllArgsConstructor
public enum WhereConditionTypeEnum {
    EQ(0, "等于"),
    NE(1, "不等于"),
    GT(2, "大于"),
    GE(3, "大于等于"),
    LT(4, "小于"),
    LE(5, "小于等于"),
    LIKE(10, "模糊匹配"),
    LIKE_LEFT(11, "模糊匹配-左"),
    LIKE_RIGHT(12, "模糊匹配-右"),
    IN(20, "成员匹配"),
    IN_NOT(21, "成员匹配-排除"),
    BETWEEN(30, "范围匹配"),
    BETWEEN_NOT(31, "范围匹配-排除");

    @EnumValue
    private int index;
    private String name;
}
